<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="UTF-8">
  <title>hello ,thymeleaf</title>
</head>
<body>

<h1>hello,<span th:text="${name}" ></span></h1>
<h1>hello,<span th:utext="${HtmlCode}" ></span></h1>
  <div th:text="${HtmlCode}">div1</div>
  <div th:utext="${HtmlCode}">div2</div>
</body>
</html>